package com.kl.service.impl;

import com.kl.entity.Detailed;
import com.kl.mapper.DetailedMapper;
import com.kl.service.IDetailedService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2021-10-30
 */
@Service
public class DetailedServiceImpl extends ServiceImpl<DetailedMapper, Detailed> implements IDetailedService {
    @Autowired
    private DetailedMapper  detailedMapper;


    @Override
    public List<Detailed> getywaybillId(Long waybillId) {
        List<Detailed>list=  detailedMapper.getywaybillId(waybillId);
        return list;

    }
    @Override
    public Long add(Detailed detailed) {

        detailed.insert();
        System.out.println(detailed.getDetailedId());
        return detailed.getDetailedId();
    }
}
